package com.example.demo.dao1;

import com.example.demo.entity.Classa;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ClassJpaDao extends JpaRepository<Classa, Integer> {
    List<Classa> findByNameNotNull();

    List<Classa> findByNum(int num);

    List<Classa> findByNameContainingOrDep(String name, String dep);
}
